package com.googlecode.ocl2sqlcompiler;

import java.math.BigDecimal;

/**
 * 
 * @author Renato Miceli
 * 
 */
public class OCLNumber extends BigDecimal {

	private static final long serialVersionUID = -5534960058551842822L;

	public OCLNumber(String val) {
		super(val);
	}

	/**
	 * {@inheritDoc}
	 */
	@Override
	public boolean equals(Object x) {
		if (!OCLNumber.class.isInstance(x)) {
			return false;
		}
		OCLNumber num = (OCLNumber) x;
		return super.compareTo(num) == 0;
	}

}
